package xkp.lesson.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class SysLogAspect {
    @Pointcut("@annotation(xkp.lesson.annotation.SysLog)")
    public void expre1(){}

    @Before(value = "expre1()")
    public void recordLog(){
        System.out.println("记录日志...");
    }
}
